/** @type {import('next').NextConfig} */
const nextConfig = {
    // output: 'export',//开启静态文件打包
    output: 'standalone',
    swcMinify: true,
    images: {
        //远程图片的域名验证
        domains: ['res.ddddyres.com','res.sharkerr.com'],
        unoptimized:true,//禁用图像优化api
    },
    //https://www.nextjs.cn/docs/api-reference/next.config.js/rewrites
    async rewrites(){
        return [
            {
                source: '/dataapi/:path*',
                destination: 'http://www.web2.com/dataapi/:path*',
            }
        ] 
    }
}

module.exports = nextConfig
